package com.example.course.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 活动数据传输对象
 *
 * @author Jasmine-drs
 * @date 2025-04-22
 */
@Data
@ApiModel(value = "活动DTO", description = "活动数据传输对象")
public class ActivityDTO {

	@ApiModelProperty(value = "活动标题", required = true, example = "春季技术分享会")
	@NotBlank(message = "活动标题不能为空")
	@Size(max = 32, message = "标题长度不能超过32")
	private String title;

	@ApiModelProperty(value = "活动介绍", required = true, example = "本次活动将分享最新技术趋势")
	@NotBlank(message = "活动介绍不能为空")
	private String introduction;

	@ApiModelProperty(value = "封面图地址", required = true, example = "https://example.com/image.jpg")
	@NotBlank(message = "封面图地址不能为空")
	@Size(max = 255, message = "封面图地址长度不能超过255")
	private String coverUrl;
} 